﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 输入工作任务详情
    /// </summary>
    public class InputCrontabDto
    {
        /// <summary>
        /// 实例路径
        /// </summary>
        [Required(ErrorMessage = "实例路径必填")]
        public string InstancePath { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// Cron 表达式
        /// </summary>
        [Required(ErrorMessage = "Cron表达式必填")]
        public string CronExpression { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }
    }
}
